/*
 * @Author: lsl1201
 * @Date: 2023-08-17 16:12:54
 * @LastEditors: lsl1201 
 * @LastEditTime: 2023-08-18 10:00:16
 */
false && console.log("Hello World1111!");

true || console.log("Hello World2222!");

let isDarkMode = false;
const backgroundColor1 = isDarkMode ? 'black' : 'white';
const backgroundColor2 = isDarkMode && 'black' || 'white';
console.log(undefined==false?true:false);

let a = isDarkMode && 'black'
console.log(a);
console.log(backgroundColor1, backgroundColor2);
console.log('%c%s', 'color: #00a3cc;padding:20px;font-size:30px', 'Hello World3333!')


// isNaN(1) // false
// Number.isNaN(1) // false
console.log(isNaN(1), Number.isNaN(1));

// isNaN 判断的是参数是否能转换成数字，如果是数字，返回false，否则返回true
// Number.isNaN 判断的是参数是否为NaN，如果是NaN，返回true，否则返回false

let 测试 = 1
console.log(测试);

console.log(070) // 会输出56，因为070是八进制数，转换成十进制数就是56
console.log(079) // 79  因为079是无效的八进制数，所以直接输出79

let a1 = `123123\n123123`
let a2 = `这4是一段带回车的字符串 \r 789789`
console.log(a1) 
console.log(a2) 
let lang = "Java"
lang = lang + "Script"
console.log(lang) // JavaScript

abc : for (let i = 0; i < 3; i++) {
    console.log(i)
    for (let j = 0; j < 3; j++) {
        console.log(j)
        if (j === 1) {
            break abc
        }
    }
}

